package com.goldcn.user.dao;

import com.goldcn.user.dto.CompanyDecorationSelectDto;
import com.goldcn.user.model.CompanyDecoration;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CompanyDecorationMapper {
    int deleteByPrimaryKey(Long decorateID);

    int insert(CompanyDecoration record);

    int insertSelective(CompanyDecoration record);

    CompanyDecoration selectByPrimaryKey(Long decorateID);

    int updateByPrimaryKeySelective(CompanyDecoration record);

    int updateByPrimaryKey(CompanyDecoration record);

    CompanyDecoration selectByTargetID(@Param("targetID") Long targetID, @Param("companyID") Long companyID);

    List<CompanyDecoration> selectAll(@Param("nameOrPhone") String nameOrPhone, @Param("companyID") Long companyID);

    List<Map<String,Object>> selectList(CompanyDecorationSelectDto dt);
}